<!-- 查找后的帮我找房列表 -->
<template>
	<view>
		<view class="heighly">
			<!-- <list-groups :list="dataList" :listHighly="highly"></list-groups> -->
			<zufang :list="dataList" :listHighly="highly" v-if="type == 3"></zufang>
			<newlist :list="dataList" :listHighly="highly" v-if="type == 0" textType="在售"></newlist>
			<ershoufangnewlist :list="dataList" :listHighly="highly" v-if="type == 1"></ershoufangnewlist>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [],
				type: 0
			};
		},
		async onLoad(e) {
			if(e.typu){
				this.type = +e.typu;
				if (e.typu == 3) {
					if (e.list) { //租房找房
						this.path = 'getHouselist';
						this.params = {
							...this.params,
							pnum: 10,
							...JSON.parse(e.list)
						};
						await this.getList();
					}
				}else{
					if (e.list) {
						this.path = e.typu == 1 ? 'towhouselist' : 'propertieslist';
						console.log(this.path,'???????');
						this.params = {
							...this.params,
							pnum: 10,
							...JSON.parse(e.list)
						};
						if(e.typu != 1){
							this.params.loupanleixing = '新房'
						}
						await this.getList();
					}
				}
			}
		}
	}
</script>

<style lang="scss">

</style>
